for dat = 1:length(ALLEEG)
    for e = 1:length(ALLEEG(dat).epoch)
        STUDY.datasetinfo(dat).trialinfo(e).presentation = ALLEEG(dat).epoch(e).eventpresentation{1};
        STUDY.datasetinfo(dat).trialinfo(e).session      = num2str(ALLEEG(dat).epoch(e).eventsession{1});
        STUDY.datasetinfo(dat).trialinfo(e).prevevent    = num2str(ALLEEG(dat).epoch(e).eventprevevent{1});
    end;
end;
